home *** CD-ROM | disk | FTP | other *** search
/ PC-Blue - MS DOS Public Domain Library / PC-Blue MS-DOS Public Domain Library - NYACC.iso / vol115 / manual < prev    next >
Encoding:
Text File  |  1986-12-15  |  37.0 KB  |  1,245 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                                                                           Page 1
  7.  
  8.  
  9.                                  PC/CALCULATOR                                  
  10.  
  11.  
  12. I. INTRODUCTION
  13.  
  14. REQUIREMENTS
  15.  
  16.  
  17.     IBM PC, XT, Jr., or compatible
  18.     1 Floppy Drive
  19.     128KB RAM
  20.     DOS 1.0, 1.1, or 2.0
  21.  
  22.  
  23. PC/CALCULATOR is a software program that will turn your IBM PC into a program- 
  24. mable multi-function RPN (Reverse Polish Notation) calculator. It features 16 
  25. visible memories, 7 function key modes, and 14 number display formats. In- 
  26. cluded is a background version of the calculator. Once loaded into your PC, it 
  27. can be easily accessed from within another program. 
  28.  
  29.  
  30. COPYRIGHT
  31.  
  32.  
  33. PC/CALCULATOR may be used on only one computer at a time. The distribution 
  34. diskette may be duplicated for backup purposes only. Distributing copies of 
  35. the programs or documentation is illegal. 
  36.  
  37.  
  38. GETTING STARTED
  39.  
  40.  
  41. Before you begin using PC/CALCULATOR, please take the time to duplicate your 
  42. distribution diskette either to a backup floppy or to a hard disk. I highly 
  43. recommend that you use this backup version and keep the distribution diskette 
  44. in a safe place. Copying the diskette with the command 
  45.  
  46.     COPY A:*.* B: 
  47.  
  48. is more reliable than DISKCOPY. 
  49. If you have some experience with an RPN calculator, and you can't wait to read 
  50. the documentation, enter the command 
  51.  
  52.     CALC 
  53.  
  54. and press return when the copyright message appears. You can exit the cal- 
  55. culator at any time by pressing 'Q'. If that doesn't work, press 'J' and then 
  56. 'Q'. The latter will work even if you are using the programmable mode of the 
  57. calculator. You may also press 'H' to access a help screen. 
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72. Page 2                                                                          
  73.  
  74.  
  75.                                  PC/CALCULATOR                                  
  76.  
  77.  
  78. EXECUTING THE CALCULATOR
  79.  
  80.  
  81. To start the calculator, enter the command 
  82.  
  83.     CALC   [P=PRINT-FILE]
  84.            [F=FOREGROUND-COLOR]
  85.            [B=BACKGROUND-COLOR]
  86.            [K=PROGRAM-FILE-TO-RUN]
  87.            [L=PROGRAM-FILE-TO-WRITE] [+U]
  88.  
  89. The items in brackets are optional. 
  90. The P=PRINT-FILE-OPTION is used to redirect output to either a file or a 
  91. device. Some calculator functions create output which by default goes to the 
  92. printer 'PRN:'. To send this output to either a serial printer or a file, en- 
  93. ter 
  94.  
  95.     CALC P=COM1: 
  96.     or 
  97.     CALC P=OUTPUT.FLE 
  98.  
  99. The F=FOREGROUND-COLOR and B=BACKGROUND-COLOR are used to modify the displayed 
  100. colors on a color monitor. The color options are 
  101.  
  102.  
  103. 0 - black 3 - cyan    6 - brown
  104. 1 - blue  4 - red     7 - white
  105. 2 - green 5 - magenta           
  106.  
  107. These options are not useful with a monochrome monitor. Colors other than 
  108. black for the background are not recommended. The default colors are black 
  109. background and white foreground. 
  110.  
  111. The K= and L= options are described in the programming section. 
  112.  
  113. The +U option is a mnemonic for upper case switch. The ten function key                         PC/CALCULATOR                                  
  114.  
  115.  
  116. II. USING THE CALCULATOR
  117.  
  118.  
  119. REVERSE POLISH NOTATION
  120.  
  121. Using an RPN calculator will take a little practice, but ultimately you may 
  122. find it easier to use than an algebraic calculator. All RPN calculators use a 
  123. number stack. This is similar to a tray stack at a cafeteria, which drops down 
  124. when a tray is placed on top, and which pops up when a tray is removed. The 
  125. PC/CALCULATOR stack appears on the screen upside down, with the numbers 
  126. pushing each other up and popping them down. If a number is pushed off the top 
  127. of the stack, it disappears. Once numbers are pushed onto the stack, they may 
  128. be manipulated by the calculator. Some of the function keys as well as the 
  129. four standard calculator functions -- add, subtract, multiply, and divide -- 
  130. use the bottom two numbers in the stack. Each of these functions returns its 
  131. result on the bottom of the stack. Many of the function keys work only on the 
  132. bottom number in the stack and leave the result on the bottom. The reason for 
  133. the 'Reverse' is that, unlike an algebraic calculator where you might enter 
  134.  
  135. NUMBER + NUMBER =, 
  136.  
  137. with an RPN calculator you enter 
  138.  
  139. NUMBER NUMBER + 
  140.  
  141.  
  142. ENTERING NUMBERS
  143.  
  144. All numbers entered into the calculator first appear on the line below the 
  145. stack marked 'E' for enter. To enter numbers into the calculator, you may use 
  146. either the top row of keys of your IBM PC or the keypad. A decimal point may 
  147. be entered either using the period key or the 'Del' key. 
  148.  
  149. Errors may be corrected by pressing the backspace key above the return key. 
  150. You can clear out the whole 'E' line by pressing Ctrl backspace. Once the num- 
  151. ber is correctly entered, press the return key to push the number into the 
  152. stack. Once this is done, the number may be negated with the 'N' key. If 
  153. anything is entered on the 'E' line and any function key is pressed, the en- 
  154. tered number will automatically be pushed into the stack before the function 
  155. is executed. The range of numbers that PC/CALCULATOR can handle is approx- 
  156. imately 1.E-308 to 1.E+308. To enter a positive exponent, press the 'E' key. 
  157. For a negative exponent, use the 'F' key. 
  158.  
  159. FOUR ARITHMETIC FUNCTIONS
  160.  
  161.     Add      - Both '+' keys 
  162.     Subtract - Both '-' keys
  163.     Multiply - Both '*' keys and the 'X' key
  164.     Divide   - Either the '\' or '/' key
  165.  
  166. Pressing one of these keys causes an arithmetic operation on the two numbers 
  167. on the bottom of the stack. The result replaces the two operands. 
  168.  
  169. STACK MANIPULATION
  170.  
  171. Function key 1 always switches the bottom two numbers on the stack. Function 
  172. key 2 pushes a duplicate of the bottom number onto the stack. Shift F1 pops 
  173. the bottom number off the stack and puts it back on top. This is called a roll 
  174.  
  175.  
  176. Page 4                                                                          
  177.  
  178.  
  179.                                  PC/CALCULATOR                                  
  180.  
  181.  
  182. operation. Shift F2 always pops the bottom number off the stack and discards 
  183. it. 
  184.  
  185. ERRORS
  186.  
  187. If you make a mistake such as pressing an illegal key or dividing by zero, the 
  188. calculator will sound a beep, and print an error message across the bottom of 
  189. the screen. A list of all error messages appears in the appendices. 
  190.  
  191. ARITHMETIC EXAMPLE
  192.  
  193. How do you calculate the following expression?
  194.  
  195.          (5.123 + 2.127) / (6.75 - 4.23)
  196.  
  197. First enter 5.123 and press return.
  198. Then enter 2.127 and press '+'.
  199.     The result should be 7.25.
  200. Enter 6.75 and press return.
  201. Enter 4.23 and press '-'.
  202.     The result should be 2.52.
  203. Press '/'.
  204.     The result should be 2.8769.
  205.  
  206. AUXILIARY MEMORIES
  207.  
  208. The ten auxiliary memories that appear
  209. above the stack may be used with the 'S'
  210. and 'R' keys.  To store the number
  211. on the bottom of the stack in an
  212. auxiliary memory, press 'S' followed by
  213. a number 0-9.  This will not affect
  214. the stack.  To retrieve one of the
  215. auxiliary memories, press 'R' followed 
  216. by a number 0-9.  This will 
  217. push the number in that memory into
  218. the stack.  The mekey 
  219. or the escape (Esc) key. Pressing the escape key will save the current state 
  220. of the calculator in a file called CALC.SAV, which will be read when the cal- 
  221. culator is run again. Pressing the 'Q' key will exit the program immediately. 
  222.  
  223.  
  224.  
  225.                                                                           Page 5
  226.  
  227.  
  228.                                  PC/CALCULATOR                                  
  229.  
  230.  
  231. DISPLAY AND ENTRY MODES
  232.  
  233. By pressing the 'D' key, you may change the display format of the stack and 
  234. auxiliary memories. The 'D' key is pressed followed by one of these keys. 
  235.  
  236.     D or F - Floating decimal
  237.     0 to 9 - Fixed point decimal
  238.     H      - Hexidecimal
  239.     O      - Octal
  240.     B      - Binary
  241.  
  242. Full precision is kept for all display modes. Hex, octal, and binary modes 
  243. will display *'s when out of range. When in a nondecimal mode, the data entry 
  244. from the keyboard is also modified. To enter the hexidecimal values 'A' 
  245. through 'F', press the alt key followed by the appropriate letter key. In oc- 
  246. tal mode, the digits '8' and '9' are not legal and likewise in binary mode; 
  247. only '0' and '1' are allowed. The current mode is always displayed in the up- 
  248. per left-hand corner of the screen. Each function key mode has its own display 
  249. mode. Beware: changing the function key mode will not reformat the display. 
  250.  
  251. THE UN-DO KEY
  252.  
  253. Pressing the 'U' key at any time will have the effect of removing the action 
  254. of the last key entered. This does not include un-doing an un-do. 
  255.  
  256. TAPE TRACE AND PRINTING
  257.  
  258. The 'T' and 'Y' keys toggle a tape trace. The 'T' key will cause a tape that 
  259. traces the calculator action to be written to the print file. This file is set 
  260. on invocation of CALC with the 'P=' option. The default for this file is the 
  261. printer. 
  262.  
  263. The 'Y' key causes the tape trace to be printed on the right-hand side of the 
  264. screen. This key will not work when using the mouse mode. 
  265.  
  266. At any time, you may press the 'P' key to print out the current values of the 
  267. stack and auxiliary memories to the print file. 
  268.  
  269. RADIANS/DEGREES MODE
  270.  
  271. The regular trigonometric functions take input either in radians or degrees. 
  272. The arc trig functions leave output in either radians or degrees. The current 
  273. radians/degrees mode is listed under the 'E' line and may be toggled with the 
  274. Ctrl-Tab key. 
  275.  
  276. MOUSE MODE
  277.  
  278. If you use a mouse whose movement simulates cursor control keys and whose but- 
  279. ton simulates a return key, then you can use the mouse mode of the calculator. 
  280. To toggle the mouse mode, press the 'M' key. Use the mouse to move the block 
  281. cursor to point to a part of the screen. 
  282.  
  283. When in mouse mode, you can enter data with the keypad on the right side of 
  284. the screen. Also, the auxiliary memories can be used as an alternate source of 
  285. the digits 0-9. The hexidecimal digits are available in the lower right-hand 
  286. corner. The function keys on the left will work, but be careful to point at 
  287. either the top or bottom function of a key. Pointing at the middle line will 
  288. do nothing. The functions on the top line are enabled for Store, Restore, 
  289.  
  290.  
  291. Page 6                                                                          
  292.  
  293.  
  294.                                  PC/CALCULATOR                                  
  295.  
  296.  
  297. Help, and the four arithmetic functions. 
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.                                                                           Page 7
  358.  
  359.  
  360.                                  PC/CALCULATOR                                  
  361.  
  362.  
  363. III. FUNCTION KEY MODES
  364.  
  365.  
  366. There are seven function key modes which are described below. They are all 
  367. reachable by pressing the tab key. You can also reach a mode directly by pres- 
  368. sing the 'V' key and a number from 1 to 7. Each function key mode has its own 
  369. display mode which can be changed with the 'D' key. The current function key 
  370. mode is listed below the E line. 
  371.  
  372.  
  373.   CALC  - General calculation mode; includes logs and exponen                                                                        
  374.  
  375.  
  376.                                  PC/CALCULATOR                                  
  377.  
  378.  
  379. CALC FUNCTION KEY MODE 
  380.  
  381. The function keys in CALC mode all work on a single value in the (X) register 
  382. and return a value to the (X) register, except for function keys 9 and 10 and 
  383. their shifts. Function key 10 and its shift use the (X) and (Y) register and 
  384. return a value in (X). Function key 9 and its shift push constants into the 
  385. (X) register. The functions are as follows: 
  386.  
  387.      F1     - Swap (X) and (Y)   
  388.      SH F1  - Roll (X) to top    
  389.      F2     - Reciprocal of (X)    
  390.      SH F2  - Round (X) to integer 
  391.               or fixed accuracy
  392.      F3     - Duplicate (X)       
  393.      SH F3  - Drop (X)            
  394.      F4     - Natural log of (X)  
  395.      SH F4  - Euler's constant     
  396.               raised to (X)        
  397.      F5     - Square root of (X)  
  398.      SH F5  - (X) squared         
  399.      F6     - Log base 2 of (X)       
  400.      SH F6  - 2 raised to (X)         
  401.      F7     - Cube root of (X)    
  402.      SH F7  - (X) cubed           
  403.      F8     - Log base 10 of (X)      
  404.      SH F8  - 10 raised to (X)        
  405.      F9     - Pi constant         
  406.      SH F9  - Euler's constant    
  407.      F10    - Log base (Y) of (X)     
  408.      SH F10 - (Y) raised to (X)       
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.                                                                           Page 9
  440.  
  441.  
  442.                                  PC/CALCULATOR                                  
  443.  
  444.  
  445. CALC2 FUNCTION KEY MODE
  446.  
  447. The function keys in CALC2 mode have miscellaneous functions. Keys F5, F7, F9, 
  448. and their shifts are for markup calculations. Key F2 and its shift are for per- 
  449. cent calculations. Key F4 and its shift are for adding and subtracting numbers 
  450. from auxiliary memory 0. Key F6 and its shift and key F8 are for combinatoric 
  451. problems. 
  452.  
  453. To do a markup calculation, you need to know two of the three variables: cost, 
  454. selling price, and markup percent. Enter the two variables by entering a num- 
  455. ber followed by the appropriate function key: F5, F7, or F9. These values are 
  456. stored respectively in memories 6, 7, or 8. 
  457.  
  458. Markup Calculations
  459.  
  460.      F5  -  Cost              Memory 6
  461.      F7  -  Selling price     Memory 7 
  462.      F9  -  Markup percent    Memory 8
  463.  
  464. To calculate the unknown variable, press the shifted function key. 
  465.  
  466. Markup Calculation Examples 
  467.  
  468. Find the selling price of an item that costs $15.95 with a markup of 20%. 
  469.  
  470.    KEY(S)        EXPLANATION
  471. 1. D
  472. 2. 2             Set display mode fixed 2
  473. 3. 15.95
  474. 4. F5 (COST)     Set cost
  475. 5. 20
  476. 6. F9 (MARKUP %) Set the markup percent
  477. 7. Shift F7      Calculate the sell price
  478. Answer in (X)    19.94
  479.  
  480. Find the markup of an item that costs $45.45 and retails for $99.95. 
  481.  
  482. 1. D
  483. 2. 0             Set display mode fixed 0
  484. 3. 45.45
  485. 4. F5 (COST)     Set cost
  486. 5. 99.95
  487. 6. F7 (SELL)     Set the selling price
  488. 7. Shift F9      Calculate the markup %
  489. Answer in (X)    % 55
  490.  
  491. Percent Calculations
  492.  
  493. To enter a percent, first enter the number, then press F2, the percent key. 
  494. This key divides the (X) register by 100. 
  495.  
  496. To find a percent change, enter the two numbers into the stack registers (X) 
  497. and (Y) and press shift F2, the delta percent key. 
  498.  
  499. Delta Percent Example 
  500.  
  501. Sales of a product increase from 15,000 units to 24,000 units in one period. 
  502. What is the percent change? 
  503.  
  504.  
  505. Page 10                                                                         
  506.  
  507.  
  508.                                  PC/CALCULATOR                                  
  509.  
  510.  
  511. 1. 24000
  512. 2. ENTER        New value 
  513. 3. 24000        Old value               
  514. 4. Shift F2     (Delta percent)
  515. Answer in (X)   60
  516.  
  517. Sum a List of Numbers Example
  518.  
  519. To sum up your check register, do the following:
  520.  
  521. 1. D            Change display
  522. 2. 2            To two fixed decimals
  523. 3. C
  524. 4. C            Clear all registers
  525. 5. 94.56        Item 1
  526. 6. F4           Add it to memory 0
  527. 7. 14.00        I result will 
  528. be in the (X) register. 
  529.  
  530. To find Px:y or the number of permutations of x items taken y at a time, enter 
  531. x and y into the stack registers (X) and (Y) and press shift F6. The answer 
  532. will be in (X). 
  533.  
  534. To find Cx:y or the number of combinations of x items taken y at a time, enter 
  535. x and y into the stack registers (X) and (Y) and press shift F6. The answer 
  536. will be in (X). 
  537.  
  538. Note that the combinatoric functions are limited in accuracy for large num- 
  539. bers. 
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585. Page 12                                                                         
  586.  
  587.  
  588.                                  PC/CALCULATOR                                  
  589.  
  590.  
  591. TRIG FUNCTION KEY MODE 
  592.  
  593. All the functions keys in TRIG mode work on a single value in the (X) register 
  594. and return a value to the (X) register, except for function key 10 and its 
  595. shift. Function key 10 and its shift push constants into the (X) register. The 
  596. functions are as follows: 
  597.  
  598.      F1     - Swap
  599.      SH F1  - Roll
  600.      F2     - Inverse sine
  601.      SH F2  - Inverse hyperbolic sine
  602.      F3     - Duplicate
  603.      SH F3  - Drop
  604.      F4     - Inverse cosine
  605.      SH F4  - Inverse hyperbolic cosine
  606.      F5     - Sine
  607.      SH F5  - Hyperbolic sine
  608.      F6     - Inverse tan
  609.      SH F6  - Inverse hyperbolic tan
  610.      F7     - Cosine
  611.      SH F7  - Hyperbolic cosine
  612.      F8     - Inverse tan of (Y)/(X)
  613.      SH F8  - No function
  614.      F9     - Tan
  615.      SH F9  - Hyperbolic tan
  616.      F10    - Pi constant
  617.      SH F10 - Euler's constant
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.                                                                          Page 13
  652.  
  653.  
  654.                                  PC/CALCULATOR                                  
  655.  
  656.  
  657. STATS FUNCTION KEY MODE
  658.  
  659. Stats mode allows you to enter either multiple values or multiple ordered 
  660. pairs. Once entered, there are function keys for calculating the variance, 
  661. standard deviation, and mean. When entering ordered pairs, there are functions 
  662. keys for calculating least squares determination of slope, y intercept, and 
  663. correlation coefficient. Values can also be projected using either new x or y 
  664. coordinates. Using the trend sum key, data may be entered with the x value 
  665. automatically incremented. 
  666.  
  667. Entering Statistical Data 
  668.  
  669. Statistical data may be entered in either x, y pairs or x values alone. The 
  670. usual way to enter data is to enter each x, y pair into the bottom of the 
  671. stack and then press the statistical summation key, F2. Values may be removed 
  672. by following the same procedure but by pressing the shift F2 key instead. 
  673.  
  674. When performing trend analysis, start by putting the first x value in the (Y) 
  675. register and the first y value in the (X) register. Pressing shift F10 will 
  676. sum the values and leave an incremented x value on the bottom of the stack. 
  677. Thereafter, you only need enter a y value and press shift F10 to enter more 
  678. data. 
  679.  
  680. PC/CALCULATOR keeps intermediate values in memory registers 3 - 8. These may 
  681. not be used while doing statistical calculations without corrupting the 
  682. results. The values kept are: 
  683.  
  684.         Memory 3 - Number of entries
  685.         Memory 4 - Sum of x values 
  686.         Memory 5 - Sum of y values 
  687.         Memory 6 - Sum of x squared
  688.         Memory 7 - Sum of y squared
  689.         Memory 8 - Sum of x * y    
  690.  
  691. Calculating Statistical Values
  692.  
  693. Once your data is entered, you can immediately calculate some important 
  694. statistical results by pressing the following function keys. All results are 
  695. returned in the (X) register. 
  696.  
  697.      F5       - Variance of x values
  698.                 with weight n-1
  699.      Shift F5 - Variance of x values
  700.                 with weight n
  701.      F7       - Standard deviation of x's
  702.                 with weight n-1
  703.      Shift F7 - Standard deviation of x's
  704.                 with weight n
  705.      F8       - Standard deviation of y's
  706.                 with weight n-1
  707.      Shift F8 - Standard deviation of y's
  708.            , enter the x value in the (X) 
  709. register and press F6. The new y value will be in the (X) register. 
  710.  
  711. To find a new x value for a given y value, enter the y value in the (X) 
  712. register and press shift F6. The new y value will be in the (X) register. 
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.                                                                          Page 15
  765.  
  766.  
  767.                                  PC/CALCULATOR                                  
  768.  
  769.  
  770. PROG FUNCTION KEY MODE 
  771.  
  772. All the functions available in PROG mode work on either the (X) and (Y) 
  773. register or just the (X) register. They all return their values in the (X) 
  774. register. All calculations are made by first converting floating point numbers 
  775. to integer, so fractional parts of an entered number will be lost. You may 
  776. find it particularly useful here to use either Hex or Binary display mode when 
  777. using this key function mode. The functions are as follows: 
  778.  
  779.      F1     - Swap (X) and (Y)    
  780.      F2     - Shift (X) 1 bit right         
  781.      F3     - Duplicate (X)       
  782.      F4     - Shift (X) 1 bit left          
  783.      F5     - Bitwise AND of (X) and (Y)
  784.      F6     - Shift (X) (Y) bits right                         
  785.      F7     - Bitwise OR of (X) and (Y)             
  786.      F8     - Shift (X) (Y) bits left                          
  787.      F9     - Bitwise EXCLUSIVE 
  788.               OR of (X) and (Y)
  789.      F10    - One's complement (X)           
  790.  
  791. Note that two's complement of (X) is obtainable by doing an EXCLUSIVE OR (F9) 
  792. with (Y) set to 0. 
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830. Page 16                                                                         
  831.  
  832.  
  833.                                  PC/CALCULATOR                                  
  834.  
  835.  
  836. FIN FUNCTION KEY MODE (Financial) 
  837.  
  838. Financial mode is certainly the most complex function key mode available in 
  839. PC/CALCULATOR. For further help in using this mode, I recommend Executive Cal- 
  840. culator Guidebook, available from Texas Instruments product centers. 
  841.  
  842. This mode uses the auxiliary memories 5-9 to store percent interest, periods, 
  843. payment, present value, and future value, which are the five variables used to 
  844. perform financial calculations. These values are stored by entering a number 
  845. and pressing the appropriate function key. In general, there are two main 
  846. types of financial problems that can be solved: compound interest problems and 
  847. annuity problems. Annuity problems can be further broken down into straight an- 
  848. nuity problems and annuity due problems. 
  849.  
  850. PC/CALCULATOR recognizes a problem as a compound interest problem if no pay- 
  851. ment amount is entered and one of the calculate percent interest, calculate 
  852. periods, calculate present value, or calculate future value keys is pressed. 
  853. Otherwise, a problem is assumed to be an annuity problem. 
  854.  
  855. Annuity problems are set to the annuity due mode by pressing shift F5 and then 
  856. are set back by pressing F5. When in annuity due mode, the word DUE is 
  857. displayed below the E line. Annuity due problems are annuity problems where 
  858. the payments are made at the beginning of each period. Normal annuities are 
  859. paid at the end of the period. If the calculate present value key or calculate 
  860. future value key is pressed, the other three variables (percent interest, 
  861. periods, and payment) are used to calculate the result. If one of the cal- 
  862. culate percent interest, periods, or payment keys is pressed, three variables 
  863. are used to do the calculation. Two of these variables are chosen from percent 
  864. interest, periods, and payment, and the third varialbe is either future value 
  865. or present value. If both future and present values have been entered, then 
  866. the most recently entered value is the one used. 
  867.  
  868. When calculating percent interest, there is always the possibility that the 
  869. variables entered are inconsistent. If so, the iterative process used to com- 
  870. pute the value will not converge. An error message is printed aftery be solved for by pressing shift F6. 
  871.  
  872. Annuity Problems 
  873.  
  874. For annuity problems, first set the annuity mode by pressing F5 or shift F5. 
  875. The variables in annuity problems are the same as for compound interest 
  876. problems with the addition of payment (F6). In general, you enter four of the 
  877. five variables and solve for the unknown by pressing the shifted function key. 
  878.  
  879.  
  880.                                                                          Page 17
  881.  
  882.  
  883.                                  PC/CALCULATOR                                  
  884.  
  885.  
  886. You may only use either present value or future value in such a calculation. 
  887. PC/CALCULATOR always remembers the last value entered and uses it. 
  888.  
  889. Caution must be used when calculating percent interest in an annuity problem. 
  890. The solution is solved for iteratively. If bogus data is used, the result 
  891. could be that PC/CALCULATOR tries as many as 1000 iterations before giving up. 
  892. If this happens, you will receive an error message. Without an 8087 chip, this 
  893. could take a few minutes. If you want to stop the process, the only way is to 
  894. press CTRL-BREAK, which will return you to DOS. 
  895.  
  896. Once your data is entered, you may compute four more important financial 
  897. values by first putting a number of periods in the (X) register and then pres- 
  898. sing the following function keys: 
  899.  
  900. F7        - Balance due on a loan
  901.             after (X) payments 
  902. Shift F7  - Accrued interest on a
  903.             loan after (X) payments
  904. F9        - Interest on current payment 
  905.             after (X) payments
  906. Shift F9  - Principal on current payment
  907.             after (X) payments
  908.  
  909. FINANCIAL EXAMPLES
  910.  
  911. Example 1. You have $15,000 in a savings account at 14% interest computed mon- 
  912. thly. After one year, what is the balance? 
  913.   NUMBER  ACTION
  914.    14.00  Enter
  915.    12.00  Enter
  916.     1.17  /
  917.           Enter i%         
  918.    12.00  Enter
  919.           Enter periods      
  920. 15000.00  Enter
  921. 17240.13  Calculate future value
  922.  
  923. Answer: Balance after one
  924.         year = $17240.13
  925.  
  926. Example 2. You have a savings account at 14% interest computed monthly. You 
  927. deposit $1000 a month for one year. What is the balance after one year? 
  928.    14.00  Enter
  929.    12.00  Enter
  930.     1.17  /
  931.           Enter i%
  932.    12.00  Enter
  933.           Enter periods
  934.  1000.00  Enter
  935.           Enter payment
  936. 12800.75  Calculate future value
  937.  
  938. Answer: Balance after one
  939.         year = $12800.75
  940.  
  941. Example 3. You take out a car loan for $10,000 at 16% for four years. What is 
  942. the payment? 
  943.    16.00  Enter
  944.  
  945.  
  946. Page 18                                                                         
  947.  
  948.  
  949.                                  PC/CALCULATOR                                  
  950.  
  951.  
  952.    12.00  Enter
  953.     1.33  /
  954.           Enter i%
  955.    12.00  Enter
  956.     4.00  Enter
  957.    48.00  *
  958.           Enter periods
  959. 10000.00  Enter
  960.           Enter present value
  961.   283.40  Calculate payment
  962.  
  963. Answer: Payment is $283.40
  964.  
  965. Example 4. You take out a home improvement loan for $20,000 at 12%. You wish 
  966. to pay $800 a month. How long will it take to pay off the loan? 
  967.    12.00  Enter
  968.    12.00  Enter
  969.     1.00  /
  970.           Enter i%
  971.   800.00  Enter
  972.           Enter payment
  973. 20000.00  Enter
  974.           Enter present value
  975.    28.91  Calculate periods
  976.    28.00  Enter
  977.   722.54  Balance
  978.  
  979. Answer: 29 months with the
  980.         final payment of $722.54
  981.  
  982. Example 5. Your home mortgage is $100,000 at 11% for 30 years. After 5 years, 
  983. what part of your payment is interest, and what part is principle? 
  984.      11.00  Enter
  985.      12.00  Enter
  986.        .92  /
  987.             Enter i%
  988.      30.00  Enter
  989.      12.00  Enter
  990.     360.00  *
  991.             Enter periods
  992.  100000.00  Enter
  993.             Enter present value
  994.     952.32  Calculate payment
  995.       5.00  Enter
  996.      12.00  Enter
  997.      60.00  *
  998.     891.24  Interest
  999.      60.00  Cancel
  1000.      61.09  Principle
  1001.  
  1002. Answer: Of a payment of $952.32,
  1003.         $891.24 is interest,
  1004.         and $61.09 is principle
  1005.  
  1006. Example 6. Your friend offers you a loan of $1000 if you will pay him $100 a 
  1007. month for 13 months. What inteou plan to add $2000 a year for 30 years. How much will you 
  1008. have when you retire on? 
  1009.      9.00  Enter
  1010.            Enter i%
  1011.     30.00  Enter
  1012.            Enter periods
  1013.  10000.00  Enter
  1014.            Enter present value
  1015. 132676.78  Calculate future value
  1016.   2000.00  Enter
  1017. 132676.78  Enter payment
  1018. 272615.08  Calculate future value
  1019. 405291.86  +
  1020.  
  1021. Answer: A nest egg of $405,291.86
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056. Page 20                                                                         
  1057.  
  1058.  
  1059.                                  PC/CALCULATOR                                  
  1060.  
  1061.  
  1062. CONV FUNCTION KEY MODE
  1063.  
  1064. The function keys in CONV mode may be used to convert between various physical 
  1065. units, such as between metric and English units. The amount to be converted is 
  1066. entered, and the result is found at the bottom of the stack. To convert to a 
  1067. unit, press the function key with that unit's name. 
  1068.  
  1069.      F1     - Swap (X) and (Y)   
  1070.      SH F1  - Roll (X) to top    
  1071.      F2     - Centimeters to inches
  1072.      SH F2  - Inches to centimeters
  1073.      F3     - Duplicate (X)       
  1074.      SH F3  - Drop (X)            
  1075.      F4     - Kilometers to miles 
  1076.      SH F4  - Miles to kilometers  
  1077.      F5     - Kilograms to pounds 
  1078.      SH F5  - Pounds to kilograms 
  1079.      F6     - Square centimeters to   
  1080.               square inches
  1081.      SH F6  - Square inches to        
  1082.               square centimeters
  1083.      F7     - Liters to U.S. gallons
  1084.      SH F7  - U.S. gallons to liters
  1085.      F8     - Hectares to acres   
  1086.      SH F8  - Acres to hectares   
  1087.      F9     - Degrees Celcius to 
  1088.               degrees Fahrenheit
  1089.      SH F9  - Degrees Celsius to
  1090.               degrees Fahrenheit
  1091.      F10    - Cubic meters to
  1092.               cubic feet
  1093.      SH F10 - Cubic feet to    
  1094.               cubic meters
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.                                                                          Page 21
  1123.  
  1124.  
  1125.                                  PC/CALCULATOR                                  
  1126.  
  1127.  
  1128. IV. BACKGROUND CALCULATOR
  1129.  
  1130.  
  1131. OVERVIEW
  1132.  
  1133. The background calculator is a special version of PC/CALCULATOR that may be 
  1134. loaded into your computer, where it is available while other programs are 
  1135. being run. An invocation key is chosen which suspends the running program and 
  1136. starts the calculator. Any key may be chosen as the invocation key. The back- 
  1137. ground calculator is more limited than the regular version and will not run 
  1138. calculator programs. The features that print to disk or printer, such as the 
  1139. 'P' key and the 'T' key, are not available. There is only one generic help 
  1140. screen, which can't be read from disk. The background calculator will not run 
  1141. with DOS version 1.0 or 1.1; you must have version 2.0. 
  1142.  
  1143. INSTALLING THE BACKGROUND CALCULATOR 
  1144.  
  1145.  
  1146. To start the background calculator, enter the command 
  1147.  
  1148.       BCALC
  1149.       [E=CODE-NUMBER | -E]
  1150.       [F=FOREGROUND-COLOR]
  1151.       [B=BACKGROUND-COLOR] [+U]
  1152.  
  1153. The 'F=' and 'B=' options are the same as for the regular calculator. There 
  1154. are two ways to choose the invocation key: by pressing a key or by entering a 
  1155. parameter on the command line. If no 'E=' option is entered, the calculator 
  1156. will prompt you for an invocation key. This key may be any key and may be used 
  1157. with a shift, Alt, or Ctrl key. The location of the key is very important. The 
  1158. '1' key over the letter 'Q' is different from the '1' key on the keypad. When 
  1159. pressed, the invocation key will suspend the current program and start the cal- 
  1160. culator. 
  1161.  
  1162. This method of setting the invocation key does not work when used in a batch 
  1163. file such as AUTOEXEC.BAT. Instead, you may specify a key with the 'E=' op- 
  1164. tion. To find the code number for a key, you must use the program FINDKEY, 
  1165. which is located on the distribution diskette. Run FINDKEY and press the in- 
  1166. vocation key that you wish to use. FINDKEY will display the code number for 
  1167. that key on the screen. 
  1168.  
  1169. Note: The '-E' option, which may not be used with the 'E=' option, will cause 
  1170. the bHE BACKGROUND CALCULATOR 
  1171.  
  1172. With the exceptions noted above, the background calculator will function the 
  1173. same as the regular calculator. It does have one additional key: the 'B' key. 
  1174. Pressing this key will allow you to review the last screen of the program you 
  1175.  
  1176.  
  1177. Page 22                                                                         
  1178.  
  1179.  
  1180.                                  PC/CALCULATOR                                  
  1181.  
  1182.  
  1183. were running before invoking the calculator. By using the 'B' key, you can 
  1184. review any numbers that you may want to use in your calculations. After this 
  1185. key is pressed, the next key entered will return you to the calculator. 
  1186.  
  1187. EXITING THE BACKGROUND CALCULATOR 
  1188.  
  1189. You may leave the background calculator and return to your program by pressing 
  1190. either the escape key (Esc) or the 'Q' key. The state of the calculator will 
  1191. remain unchanged. If you return to the calculator at a later time, the stored 
  1192. numbers will be there if you need them. If you use the escape key to exit the 
  1193. calculator, the program you were running will restart immediately. However, if 
  1194. you use the 'Q' key to exit, up to 14 digits of the bottom number on the stack 
  1195. will be stored in the keyboard input buffer. These digits will then be entered 
  1196. to the program you were running just as if you had keyed them in yourself. 
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.                                                                          Page 23
  1244.  
  1245. y to e÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷